<?php
namespace app\article\controller;
use think\Request;
use think\Response;
use app\common\controller\Base;

class ArticleSitemap extends Base
{
    public function baiduSmartApp()
    {
        $page = input('param.id');
        $page = $page ? $page : 1;
        $data = ['page' => $page,'limit' => 1000,];
        $itemList = model('app\article\model\Articles')->getItemList($data);
        $txt = '';
        foreach($itemList as $k => $v) {
           	$txt .= 'pages/articleDetail/articleDetail?id=' . $v["id"] . PHP_EOL;
        }
        return Response::create($txt)->contentType('text/plain');;
        
        
    }

}